home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19981211-19990422
/
000309_news@watsun.cc.columbia.edu _Tue Mar 2 18:33:05 1999.msg
< prev
next >
Wrap
Internet Message Format
|
1999-04-21
|
3KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA16230
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 2 Mar 1999 18:33:04 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id SAA20167
for kermit.misc@watsun.cc.columbia.edu; Tue, 2 Mar 1999 18:10:26 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Subject: Re: question on kermit script
Date: 2 Mar 1999 23:10:16 GMT
Organization: Columbia University
Message-ID: <7bhr4o$jm3$1@newsmaster.cc.columbia.edu>
To: kermit.misc@mailrelay2.cc.columbia.edu
In article <7bhpsf$l17$1@nnrp1.dejanews.com>, <apatnaik@aircom.com> wrote:
: I am attempting to write a kermit script that will initialize a modem,
: receive a call, wait for RING tone, and then output all the DTMF digits
: received. Note that modem is only expected to receive DTMF digits from an
: inbound call and not from another modem. It expects a digit of 9, in this
: case.
:
: I have been using the C-Kermit 6.0 book to build the commands.
:
: I have this script so far.. But all my INPUT commands fail...
: I tried this using interactive kermit and my commands worked. There is
: something about INPUT, MINPUT that is wrong. Appreciate any HELP!!! THANKS!!
:
: define TONERECEIVER {
: set modem type multitech
: set line /dev/ttya
:
What if this fails? You need an IF FAIL clause here. Otherwise your script
will plow ahead even though it doesn't have the device open.
: set speed 2400
: set carrier-watch off
: ;set input echo on
: output connect\13
:
What is this? Why are you sending "connect" and carriage return to the
modem?
: output at&fm0\13
: clear input
: minput 20 OK {CONNECT}
: switch \v(minput) {
: :0, echo {No response }, break
: :1, echo {Succeeded in getting OK}, break
: :2, echo {Found CONNECT}, break
: :default, echo {Unexpected response: \v(input) }
: }
:
This looks OK, but why are you looking for "CONNECT"? Is it supposed to
be the echo of the "connect" string that you sent? Or is it because the
modem might already be in answer mode even though you haven't sent it
the ATS0=1 command yet?
Well, I don't see anything obviously wrong with the script, except as noted.
The most common cause of "it works when I do it by hand but it doesn't
work when I run the script" is the inclusion of a CONNECT command in the
script, but yours doesn't have one.
But I also don't see how you are invoking the invoking the script -- maybe
the procedure that is calling the TONERECEIVER macro is entering CONNECT
mode?
- Frank